package com.rtp.transformer.parser.filter;

import java.io.OutputStream;
import java.util.List;

import com.rtp.transformer.parser.model.FormatConfig;

 

/**
 * Writer filter when write a List to OutputStream
 * @author bertzhao
 *
 */
public interface WriterParseFilter {

	/**
	 * Before process convert input to another
	 * @param fc husband configuration
	 * @param input input list before convert
	 * @return adjusted input list
	 */
	public List beforeProcess(FormatConfig fc,List input);
	
	/**
	 * After process convert output to another
	 * @param fc husband configuration
	 * @param output outputStream before convert
	 * @return adjusted outputStream after convert
	 */
	public OutputStream afterProcess(FormatConfig fc,OutputStream output);
}
